﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;
using System.Web.SessionState;
using SES.CMS.DO;
using SES.CMS.BL;

namespace SES.CMS
{
    public partial class DonDatHang : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["IDDN"] == null)
            {
                Response.Redirect("/Default.aspx");
            }
            else
            {
                int UserID =  int.Parse(Session["IDDN"].ToString());
                rptDonHangDataSource(UserID);
            }
            
           
        }

        private void rptDonHangDataSource(int UserID)
        {
            rptDonHang.DataSource = new cmsDonHangBL().SelectByUserID(UserID);
            rptDonHang.DataBind();
        }
        public string FriendlyUrl(string s)
        {
            return Ultility.Change_AV(s);
        }
        public DataTable GetChildData(string SessionID)
        {
            return new cmsGioHangBL().SelectBySessionID(SessionID);
        }


    }
}
